Skip to content

docs: update add_a_profile guide for rotate_back#54

Merged
Jammy2211 merged 2 commits intoreleasefrom
feature/transform-decorator
Apr 13, 2026
Merged

docs: update add_a_profile guide for rotate_back#54
Jammy2211 merged 2 commits intoreleasefrom
feature/transform-decorator

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

Update the add_a_profile.py guide to reflect the new @aa.grid_dec.transform(rotate_back=True) decorator parameter.

Depends on: PyAutoLabs/PyAutoArray#272, PyAutoLabs/PyAutoGalaxy#347

Changes:

  • Isothermal example now uses rotate_back=True and returns the raw deflection array
  • "Do I Rotate Back?" section rewritten to explain the automatic back-rotation
  • Template deflections_yx_2d_from uses rotate_back=True with updated docstring

API Changes

None — documentation only.

Test Plan

  • Script runs successfully with PYAUTO_TEST_MODE=1

🤖 Generated with Claude Code

Jammy2211 and others added 2 commits April 13, 2026 09:40
Update the Isothermal example, "Do I Rotate Back?" section, and
template to use the new automatic back-rotation decorator parameter.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Clarify that back-rotation depends on which frame the returned
components are expressed in, not unconditionally on the quantity
being a vector. Document scalar, vector, and spin-2 cases.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Jammy2211 Jammy2211 merged commit 0949628 into release Apr 13, 2026
@Jammy2211 Jammy2211 deleted the feature/transform-decorator branch April 13, 2026 09:57
Jammy2211 added a commit that referenced this pull request Apr 14, 2026
chore: replay orphaned release PRs (#54, #55, #58, #59) onto main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant